import axios from './axios'

export function getSubject(){
    return axios({
        url:'/subject/get'
    })
}

// export function getDepartmentList(){
//     return axios({
//         url:'/personnel/getDepartmentList'
//     })
// }

export function addSubject(params){
    return axios({
        method: 'post',
        url:'/subject/insert',
        params
    })
}

export function updateSubject(params){
    return axios({
        method: 'put',
        url:'/subject/update',
        params
    })
}

export function delSubject(params){
    return axios({
        method: 'delete',
        url:'/subject/delete',
        params
    })
}

